<div class="mainBody unchecked" ng-controller="uncheckedCtrl">
	<span class="layui-breadcrumb" lay-separator="-">
	  <a href="">考评管理</a>
	  <a><cite>未审查询</cite></a>
	</span>
	<div class="contain">
		<blockquote class="layui-elem-quote">找到<span>{{totalRecords}}</span>条记录
			<div id="" class="searchblock">
				<input class="layui-input" type="search" name="" required="" placeholder="班级,或班级类型,或调查员" x-webkit-speech="" x-webkit-grammar="builtin:search" lang="zh-CN"><button class="layui-btn"  ng-click="mysearch()">搜索</button>
			</div>
		</blockquote>
		<hr />
		<table class="layui-table" lay-skin="line" id="table">
			<tr>
				<td>班级</td>
				<td>类型</td>
				<td>调查教员</td>
				<td>总份数</td>
				<td>有效份数</td>
				<td>平均分数</td>
				<td>调查日期</td>
				<td>操作</td>
			</tr>
			<tr ng-repeat="x in data.pageDatas track by $index">
				<td>{{x.clazz.clazzname}}</td>
				<td>{{x.clazz.clazztype.typename}}</td>
				<td>{{x.user.username}}</td>
				<td>{{x.totalnum}}</td>
				<td>{{x.totalnum}}</td>
				<td>{{x.aver}}</td>
				<td>{{x.startDate | date:'yyyy-MM-dd'}}</td>
				<td>
					<a href="javascript:;" ng-click="detail(x.researchid)">明细</a>
				</td>
			</tr>
		</table>
		<div class="tool">
			<button class="layui-btn export" ng-click="export()">导出</button>
		</div>
		<div id="pagination"></div>
		
			
		<!--未审明细页面-->
		<div ng-show="detailshow" id="detailshow">
			<span class="layui-breadcrumb" lay-separator="-">
			  <a href="javascript:;" ng-click="detailhide()"><<返回未审查询</a>
			  <!--<a ui-sref="personal"><cite>未审查询</cite></a>-->
			</span>
			<div class="gaiyao">
				<blockquote class="layui-elem-quote">概要信息</blockquote>
				<table class="layui-table" lay-skin="line">
					<tr>
						<td>
							<span>教员：</span><span>{{detailData.user.username}}</span>
						</td>
						<td>
							<span>班级：</span><span>{{detailData.clazz.clazzname}}</span>
						</td>
						<td>
							<span>调查开始时间：</span><span>{{detailData.startDate | date:'yyyy-MM-dd'}}</span>
						</td>
						<td>
							<span>调查结束时间：</span><span>{{detailData.endDate | date:'yyyy-MM-dd'}}</span>
						</td>
					</tr>
					<tr style="margin-top: 10px;">
						<td>
							<span>状态：</span><span style="color: red;">{{detailData.state==1?'未审':'已审'}}</span>
						</td>
						<td>
							<span>总份数：</span><span>{{detailData.totalnum}}</span>
						</td>
						<td>
							<span>有效份数：</span><span>{{detailData.effectivenum}}</span>
						</td>
						<td>
							<span>平均分：</span><span>{{detailData.aver}}</span>
						</td>
					</tr>
				</table>

			</div>
			<div class="xiangxi">
				<blockquote class="layui-elem-quote">详细信息</blockquote>
				<table class="layui-table" lay-skin="line">
					<tr>
						<td>序号</td>
						<td>是否无效</td>
						<td>评分信息</td>
						<td>操作</td>
					</tr>
					<tr ng-repeat="x in detailData.researchDetails track by $index">
						<td>{{x.detailid}}</td>
						<td><input type="checkbox" ng-model="x.cl" checked="false" value="{{x.detailid}}"/>{{!x.cl?'有效':'无效'}}</td>
						<td ng-init="color=x.cl?'red':'blue'">
							<span style="display: inline-block;width: 100px;height: 8px;position: relative;">
								<span style="display: inline-block;width: {{x.aver*100/5}}%;background: {{!x.cl?'#75ABE9':'#FA6869'}};height: 8px;position: absolute;"></span>
							</span>
							平均分 {{x.aver.toFixed(1)}}
						</td>
						<td>	<a href="javascript:;" ng-click="detailModal(x.detailid)">查看</a></td>
					</tr>
					
				</table>
				<span style="color: red;">* </span>
				<span style="color: grey;">以上是本次调查的细节信息，您可以通过勾选有效/无效来设置调查表的有效性。（点击审核后设置生效）</span>
				<button class="layui-btn" ng-click="check(detailData.researchid)">审核</button>
			</div>
		</div>
	</div>